home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 October / MACPOWER-1997-10.ISO.7z / MACPOWER-1997-10.ISO / AMUG / PROGRAMMING / Mac F2C 1.3.5.sit / Mac F2C 1.3.5 / Mac F2C Libraries / libI77 Sources / fp.h < prev    next >
Text File  |  1995-01-28  |  665b  |  29 lines

  1. #define FMAX 40
  2. #define EXPMAXDIGS 8
  3. #define EXPMAX 99999999
  4. /* FMAX = max number of nonzero digits passed to atof() */
  5. /* EXPMAX = 10^EXPMAXDIGS - 1 = largest allowed exponent absolute value */
  6.  
  7. #ifdef V10 /* Research Tenth-Edition Unix */
  8. #include "local.h"
  9. #endif
  10.  
  11. /* MAXFRACDIGS and MAXINTDIGS are for wrt_F -- bounds (not necessarily
  12.    tight) on the maximum number of digits to the right and left of
  13.  * the decimal point.
  14.  */
  15.  
  16. #ifdef VAX
  17. #define MAXFRACDIGS 56
  18. #define MAXINTDIGS 38
  19. #else
  20. #ifdef CRAY
  21. #define MAXFRACDIGS 9880
  22. #define MAXINTDIGS 9864
  23. #else
  24. /* values that suffice for IEEE double */
  25. #define MAXFRACDIGS 344
  26. #define MAXINTDIGS 308
  27. #endif
  28. #endif
  29.